package engine.math
{
	import engine.core.*;
	
	public class RxQuaternion
	{
		public var v:RxVector4;
		private static var s_tmp0:RxQuaternion = new RxQuaternion;
		private static var s_tmp1:RxQuaternion = new RxQuaternion;
		private static var s_pool:RxObjectPool = null;
		
		public function RxQuaternion()
		{
			this.v = new RxVector4(0, 0, 0, 1);
		}
		
		public static function CreatePool(initSize:uint, growSize:uint) : void
		{
			var allocFunc:* = function () : Object
			{
				return new RxQuaternion();
			};
			
			s_pool = new RxObjectPool(allocFunc, null, initSize, growSize, RxQuaternion);
		}
		
	}
}